# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=perl-html-tagparser
_pkgname=HTML-TagParser
pkgver=0.20
pkgrel=13
pkgdesc='Yet another HTML document parser with DOM-like methods.'
arch=('any')
license=('PerlArtistic')
url='http://search.cpan.org/dist/HTML-TagParser/'
depends=('perl>=5.10.0')
options=(!emptydirs)
source=("http://cpan.metacpan.org/authors/id/K/KA/KAWASAKI/$_pkgname-$pkgver.tar.gz")
sha512sums=('18275c5741e973019a94a48407421667824571778bcb741dbc89e029738e100d3eea1bfe51fa1903c23c7c2c320d4a77724244138d909c2c51363c75dac2d4b1')

build() {
  cd "$_pkgname-$pkgver"

  perl Makefile.PL INSTALLDIRS=vendor

  make
}

package() {
  cd "$_pkgname-$pkgver"

  make install DESTDIR="$pkgdir"
}

